﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebShopAPI.Models
{
    /// <summary>
    /// 类别，级联结构定义
    /// </summary>
    public class CateItem
    {
        //类别编号
        public int cat_id { get; set; }
        //类别名
        public string cat_name { get; set; }
        //父级
        public int? cat_pid { get; set; }
        //类别层级最多3级
        public int? cat_level { get; set; }
        //是否删除，用逻辑结构实现
        public bool  cat_deleted { get; set; }

        //子级数据列表
        public List<CateItem> children { get; set; }
    }
    /*
         "cat_id": 1,
            "cat_name": "大家电",
            "cat_pid": 0,
            "cat_level": 0,
            "cat_deleted": false,
            "children": [
     */
}